package transactionimplementation

/*
 * 增加小时工
 */

import (
	"salary/abstracttransactions"
	"salary/model"
	"salary/modelimplementation"
)

type AddHourlyEmployee struct {
	abstracttransactions.AddEmployeeTransaction
	hourlyRate 	float64
}

func (ahe *AddHourlyEmployee) GetClassification() model.PaymentClassification {
	return modelimplementation.NewHourlyClassification(ahe.hourlyRate)
}

func (ahe *AddHourlyEmployee) GetSchedule() model.PaymentSchedule {
	return &modelimplementation.WeeklySchedule{}
}

